<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="mvc.struts.annotation.entity.LoginVO" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>default welcome page</title>
<script src="../js/jquery-1.7.2.min.js"></script>
</head>
<body>
	<%
		LoginVO loginVo = (LoginVO)request.getAttribute("loginVo");
	%>
	
	<form action="<%=request.getContextPath() %>/myservlet/loginjudge" method="get">
		Name: <input type="text" id="nameInput" name="name" value="<%=loginVo.getName() %>"/>
		<br/>
		Password: <input type="text" id="pwdInput" name="password" value="<%=loginVo.getPassword() %>"/>
		<input type="submit" />
	</form>
	
<!--  	
<script language="javascript">
	
	$(document).ready(function() {

		$('#nameInput').bind('input', function() {

			String name = $("#nameInput").val();
			
				loginVo.setName(name);
		});

		$('#pwdInput').bind('input', function() {

				String pwd = $("#pwdInput").val();
				loginVo.setPassword(pwd);
		});
	}

</script>
-->

</body>
</html>